﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LookupPage.aspx.cs" Inherits="dpruna.SharePoint.LookupPage"
    DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

    <script type="text/javascript" language="javascript">
    /*
        function closePopup(textElem, valElem, val, text) {
            var hasErrors = false;
            try {
                if (window.parent != null && window.parent.document.getElementById(textElem) != null) {
                    var lkpValue = window.parent.document.getElementById(valElem);
                    var lkpText = window.parent.document.getElementById(textElem);
                    lkpValue.value = val;
                    lkpText.value = text;
                }
                else {
                    var iFrames = window.parent.document.getElementsByTagName('iframe');
                    var parentIFrame;
                    for (i = 0; i < iFrames.length; i++) {
                        if (iFrames[i].src.indexOf('listform.aspx?PageType=') != -1) {
                            parentIFrame = iFrames[i];
                            break;
                        }
                    }
                    if (parentIFrame != null) {
                        var contentDoc = parentIFrame.contentDocument || parentIFrame.contentWindow.document;
                        var lkpValue = contentDoc.getElementById(valElem);
                        var lkpText = contentDoc.getElementById(textElem);
                        lkpValue.value = val;
                        lkpText.value = text;
                    }
                }
            }
            catch (err) {
                hasErrors = true
                alert(err);
            }
            finally {
                if (hasErrors)
                    SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.cancel);
                else
                    SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK);
            }
        }
        */
    </script>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <%--<asp:Button runat="server" ID="SelectButtonTop" OnClick="SelectButton_Click" Width="130px" />
    <asp:GridView AutoGenerateSelectButton="false" runat="server" ID="gridView" AllowSorting="true"
        AllowPaging="true">
        <Columns>
            <asp:CommandField ShowSelectButton="true" />
            <asp:BoundField DataField="Title" />
            <asp:TemplateField HeaderText="Select">
                <ItemTemplate>
                    <asp:CheckBox ID="chkSelect" runat="server" />
                </ItemTemplate>
                <HeaderTemplate>
                </HeaderTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:Button runat="server" ID="SelectButtonBottom" OnClick="SelectButton_Click" Width="130px" />--%>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Application Page
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    My Application Page
</asp:Content>
